Skip to content

Add .csproj patching for publish output (fixes #1)#2

Merged
stef-k merged 1 commit intomainfrom
feature/csproj-patching-and-publish-fix
Feb 21, 2026
Merged

Add .csproj patching for publish output (fixes #1)#2
stef-k merged 1 commit intomainfrom
feature/csproj-patching-and-publish-fix

Conversation

@stef-k
Copy link
Copy Markdown
Owner

@stef-k stef-k commented Feb 21, 2026

Summary

  • dotnet frontend init now auto-patches the .csproj to include frontend.config.yaml as a <Content> item with CopyToPublishDirectory="PreserveNewest", fixing the missing config in dotnet publish output
  • dotnet frontend check validates the .csproj has this entry (warning, not error)
  • Changed missing-config log level from LogWarning to LogDebug (missing config is expected, defaults are used)
  • Version bump to 1.1.0, deployed to NuGet

Test plan

  • All 204 tests pass (including 12 new CsprojHelper tests)
  • dotnet build clean
  • dotnet pack produces 1.1.0 packages
  • Deployed to nuget.org

Closes #1

- `dotnet frontend init` now patches .csproj to include frontend.config.yaml
  as a Content item with CopyToPublishDirectory, ensuring it's in publish output
- `dotnet frontend check` validates .csproj has the Content item (warning)
- Change missing-config log from LogWarning to LogDebug (expected behavior)
- Add CsprojHelper shared utility and CsprojHelperTests
- Update SPEC.md sections 10.1/10.2 and README.md
- Bump version to 1.1.0

Closes #1
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@stef-k stef-k merged commit 02c8775 into main Feb 21, 2026
3 checks passed
@stef-k stef-k deleted the feature/csproj-patching-and-publish-fix branch February 21, 2026 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CLI init should auto-include frontend.config.yaml in publish output

1 participant